package com.educhains.module.message.service;

/**
 * @author YuRun
 * @since 2017年8月22日
 */
public interface EmailService {

    /**
     * Send email for register
     *
     * @param url
     * @param email
     * @return
     * @throws Exception
     */
    boolean sendActivateEmail(String url, String email) throws Exception;

    /**
     * Check the register token
     *
     * @param token
     * @param email
     * @return
     */
    boolean checkActivateEmail(String token, String email);

    /**
     * Send email for reset password
     *
     * @param url
     * @param email
     * @return
     * @throws Exception
     */
    boolean sendResetPasswordEmail(String url, String email, String userPassword) throws Exception;

    /**
     * Check forget password email
     *
     * @param token
     * @param email
     * @return
     */
    boolean checkResetPasswordEmail(String token, String email);
}
